package com.dpteam.bean;

/**
 * Created with IntelliJ IDEA.
 * User: luolei
 * Date: 2016/1/8
 * Time: 15:35
 */
public class UserInfo {

    /**
     *
     */
    private String account;
    /**
     *
     */
    private String email;
    /**
     *
     */
    private String gender;
    /**
     *
     */
    private String name;
    /**
     *
     */
    private String onJobTime;
    /**
     *
     */
    private String phone;
    /**
     *
     */
    private String password;
    /**
     *
     */
    private String imgPath;
    /**
     *
     */
    private String roleName;

    /**
     *
     */
    private int id;
    /**
     *
     */
    private int roleId;
    /**
     *
     */
    private int genderCode;

    public UserInfo() {
    }

    public UserInfo(String account, String email, String gender, String name, String onJobTime, String phone, String password, String roleName, int id, int roleId, int genderCode,String imgPath) {
        this.account = account;
        this.email = email;
        this.gender = gender;
        this.name = name;
        this.onJobTime = onJobTime;
        this.phone = phone;
        this.password = password;
        this.roleName = roleName;
        this.id = id;
        this.roleId = roleId;
        this.genderCode = genderCode;
        this.imgPath = imgPath;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("{");
        //String
        sb.append("'account':'").append(account).append("',");
        sb.append("'email':'").append(email).append("',");
        sb.append("'gender':'").append(gender).append("',");
        sb.append("'name':'").append(name).append("',");
        sb.append("'onJobTime':'").append(onJobTime).append("',");
        sb.append("'account':'").append(account).append("',");
        sb.append("'phone':'").append(phone).append("',");
        sb.append("'password':'").append(password).append("',");
        sb.append("'roleName':'").append(roleName).append("',");
        sb.append("'imgPath':'").append(imgPath).append("',");
        //int
        sb.append("'id'").append(":").append(id).append(",");
        sb.append("'roleId'").append(":").append(roleId).append(",");
        sb.append("'genderCode'").append(":").append(genderCode).append("}");
        return sb.toString();
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOnJobTime() {
        return onJobTime;
    }

    public void setOnJobTime(String onJobTime) {
        this.onJobTime = onJobTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public int getGenderCode() {
        return genderCode;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public void setGenderCode(int genderCode) {
        this.genderCode = genderCode;
    }
}
